package com.example.lee1.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.lee1.dao.UserCollectionDao;
import com.example.lee1.entity.UserCollectionEntity;
import com.example.lee1.service.UserCollectionService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("userCollectionService")
public class UserCollectionServiceImpl extends ServiceImpl<UserCollectionDao, UserCollectionEntity>
    implements UserCollectionService {

  @Override
  public PageUtils queryPage(Map<String, Object> params) {
    IPage<UserCollectionEntity> page =
        this.page(
            new Query<UserCollectionEntity>().getPage(params),
            new QueryWrapper<UserCollectionEntity>());

    return new PageUtils(page);
  }
}
